#ifndef _SDK_AAC_ENC_H_
#define _SDK_AAC_ENC_H_

#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include "OSC_aacenc_lib.h"
#include "InComPrint.h"

#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */

typedef struct
{
    HANDLE_AACENCODER aacEncHandle;
    char* pcmBuf;
    int pcmLen;
    int sampleLen;
}StSdkAacHandle,*pStSdkAacHandle;

int Ext_SdkAacEncoder_Init(pStSdkAacHandle phdl,int channels,int sampleRate,int bitRate);
int Ext_SdkAacEncoder_Data(pStSdkAacHandle phdl,char* pData,int size,char* aacOutbuf,int* outlen);
int Ext_SdkAacEncoder_Uninit(pStSdkAacHandle phdl);

#ifdef __cplusplus
}
#endif /* __cplusplus */

#endif
